const mobileReg = /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;
const weixinReg = /MicroMessenger/i;
const alipayReg = /AliApp/i;

// 是否移动设备
export function isMobile(agent) {
    return mobileReg.test(agent);
}

// 是否微信
export function isWeixin(agent) {
    return weixinReg.test(agent);
}

// 是否
export function isAlipay(agent) {
    return alipayReg.test(agent);
}